package com.ddxcloud.movie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ddxcloud.movie.data.entity.UserCoupon;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserCouponMapper extends BaseMapper<UserCoupon> {

    void updateUserCouponByCode(String couponCode, Integer couponStatus);

    Integer isExistUserCouponByUserIdAndCouponId(Long userId, Long couponId);

    Integer isExistUserCouponByCode(String couponCode);
}
